package cn.com.generaldata.os.ws.intf;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;

import cn.com.generaldata.os.vo.BillboardIndustryVO;
import cn.com.generaldata.os.vo.BillboardRuleVO;
import cn.com.generaldata.os.vo.ReportVO;
import cn.com.generaldata.os.vo.RportOfIndustryVO;

@WebService
public interface AutoPushingWSInterface {

	@WebMethod
	List<ReportVO> turnQueryReports(String userId, String bill);

	/**
	 * @Function 查询所有自动催报的规则信息
	 * @title 信息标题，若title为空，则查询全部规则信息
	 * @return
	 */
	@WebMethod
	List<BillboardRuleVO> queryAllBillboardRules(String title);

	@WebMethod
	void removeBillboardIndustry(List<String> ids);

	@WebMethod
	int queryBillboardCompletReposts(List<String> bIndustryReports, String users);

	@WebMethod
	List<RportOfIndustryVO> queryCompletReposts(List<String> bIndustryReports, String users);

	@WebMethod
	List<BillboardIndustryVO> queryAllBillboardIndustrys(String title, String content, String unit, String operatorId);
	
	@WebMethod
	BillboardIndustryVO queryAllBillboardIndustry(String id);
	

	/**
	 * @Function 创建自动催报规则信息
	 * @param rule
	 * @return
	 * @throws CommonException
	 */
	@WebMethod
	String createBillboardRule(BillboardRuleVO rule);

	@WebMethod
	String createBillboardIndustry(BillboardIndustryVO bIndustry,
			List<cn.com.generaldata.os.newpojo.ReportType> cbReportTypes, String users);

	/**
	 * @Function 删除自动催报规则信息
	 * @param id
	 * @throws CommonException
	 */
	@WebMethod
	void removeBillboardRule(String id);

}
